package com.yzh.luckydraw.test.domain;

import com.yzh.luckydraw.domain.strategy.model.req.DrawReq;
import com.yzh.luckydraw.domain.strategy.service.draw.AbstractDrawBase;
import com.yzh.luckydraw.domain.strategy.service.draw.IDrawExec;
import com.yzh.luckydraw.domain.strategy.service.draw.impl.DrawExecImpl;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

@RunWith(SpringRunner.class)
@SpringBootTest
public class DoDraw {
    @Resource(name = "drawExec")
    IDrawExec iDrawExec;
    @Test
    public void doDraw() {
        iDrawExec.doDraw(new DrawReq("杨子豪", 10001L));
        iDrawExec.doDraw(new DrawReq("潇潇", 10001L));
        iDrawExec.doDraw(new DrawReq("琪琪", 10001L));
        iDrawExec.doDraw(new DrawReq("明明", 10001L));
        iDrawExec.doDraw(new DrawReq("小狗", 10001L));
    }
}
